/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package holidaysManager;

import app.Global;
import javax.swing.JCheckBox;
import lib.JButtonTable.ButtonEditor;

/**
 *
 * @author yoshi
 */
public class EditButtonEditor extends ButtonEditor{

    private HolidaysManagerDefault myView;
    
    public EditButtonEditor(JCheckBox jCheckBox, HolidaysManagerDefault myView) {
        super(jCheckBox);
        this.myView = myView;
    }

    @Override
    protected void fireEditingStopped() {
        super.fireEditingStopped();
        new EditHolidayDialog(Global.getFrame(), true, ((EditButtonModel)this.getCellEditorValue()).getHoliday(), myView).setVisible(true);
    }
}
